<template>
    <div>
        <Table border :columns="columns" :data="tableData"></Table>
    </div>
</template>

<script>

export default {
    props: {
        tableData: Array,
        access: Object
    },
    data () {
            return {
            columns: [
                {
                    title: '序号',
                    type: 'index',
                    width: 80,
                    align: 'center'
                },
                {
                    title: '用户名称',
                    align: 'center',
                    width:140,
                    key: 'userName'
                },
                {
                    title: '企业名称',
                    align: 'center',
                    width:140,
                    key: 'partyName'
                },
                {
                    title: '品牌',
                    align: 'center',
                    width:140,
                    key: 'brand'
                },
                {
                    title: '车系',
                    align: 'center',
                    width:140,
                    key: 'series'
                },
                {
                    title: '车型信息',
                    align: 'center',
                    width:360,
                    key: 'model'
                },
                {
                    title: '反馈状态',
                    align: 'center',
                    width:140,
                    key: 'isFeedback',
                    render: (h, params) => {
                        if (params.row.isFeedback === 0) {
                            return h('span', '未反馈')
                        }  else if(params.row.isFeedback === 1) {
                            return h('span', '已反馈')
                        }else {
                            return h('span', '其他')
                        }
                    }
                },
                {
                    title: '反馈时间',
                    align: 'center',
                    width:180,
                    key: 'feedbackTime'
                },
                {
                    title: '创建时间',
                    align: 'center',
                    width:180,
                    key: 'createTime'
                },
            ],
        }
    },
    created () {
        this.init()
    },
    activated () {
        this.init()
    },
    methods: {
        init () {},
    },

}
</script>



